본문으로 건너뛰기

API Action - Server

API Action - Server is designed to enable users connected to a specific situation, such as an emergency, to collectively view a changed screen in an external service. Please note that actions only work after publishing, and endpoints without registered actions will not function properly.

Run Action

This endpoint runs a single API action. Once the endpoint has successfully received a response, every user browsing your published site will be affected by this action.

curl "https://app.sclab.io/api/1/<ID>" \
-H "Authorization: APITokenHere"

The above command returns JSON structured like this:

{
"result": "ok"
}

HTTP Request

GET https://app.sclab.io/api/1/<ID>

You must replace ID your api end point like this https://app.sclab.io/api/1/sW47bBZjYyWGjcfaF

URL Parameters

ParameterDescription
IDAPI Action ID from SCLAB Studio